var fs = require('fs')

fs.readFile('./message.txt','utf-8',function(err,data){
	if(err){
		throw err;
	}
	console.log('utf-8:',data.toString())
})

fs.appendFile('./log.txt', 'dsadsa', (err) => {
  if (err) throw err;
});